package com.borya.dao;

import java.util.List;
import java.util.Map;

import com.borya.model.db.CitycodeRelate;
import com.borya.model.entity.CardSource;
import com.borya.model.entity.PhoneSource;
import com.borya.model.entity.SelectInfo;

public interface UploadSourceDAO extends BaseDAO{


	/**
	 * 保存归属地的smsp
	 * @return
	 */
	Map<String, String> saveSmsp();

	boolean insertPhoneSource(List<PhoneSource> list);

	boolean insertUnicomPhoneSource(List<PhoneSource> list);

	boolean insertCardSource(List<CardSource> list);

	/**
	 * 查询待入库号资源
	 * @return
	 */
	List<PhoneSource> getPhoneResources(Map<String, SelectInfo> selMap);

	/**
	 * 查询待入库卡资源 
	 * @return
	 */
	List<CardSource> getCardResoutces();

	/**
	 * 自动入库
	 * @param list
	 * @return
	 */
	boolean insertAutoPhoneSource(List<PhoneSource> list);

	/**
	 * 卡自动入库
	 * @param list
	 * @return
	 */
	boolean insertAutoCardSource(List<CardSource> list);

	/**
	 * 保存模式
	 * @return
	 */
	Map<String, String> saveNumberRule();

	/**
	 *
	 * @return
	 */
	boolean updLog();

	/**
	 * 查询筛选规则
	 * @return
	 */
	Map<String,SelectInfo> getLevelCode();

	/**
	 * 查询城市信息
	 * @return
	 */
	Map<String,CitycodeRelate> allCityInfo();
}
